package com.woniuxy.controller;

import com.woniuxy.entity.Menu;
import com.woniuxy.entity.RoleMenu;
import com.woniuxy.service.MenuService;
import com.woniuxy.service.RoleMenuService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: TODO(用一句话描述这个类的作用)
 * @Author 18452
 * @Date 2021/4/26 18:42
 */

@Controller
@CrossOrigin
@RequestMapping("/rolemenu")
public class RoleMenuController {

    @Resource
    private RoleMenuService roleMenuService;

    @RequestMapping("/updateRoleMenu")
    @ResponseBody
    public String updateRoleMenu(RoleMenu roleMenu){
        return roleMenuService.updateRoleMenu(roleMenu);
    }
}
